/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package doan.quanlycanbo.portlet.service;

/**
 * <p>
 * This class is a wrapper for {@link hochamLocalService}.
 * </p>
 *
 * @author    Nguyen Tuan Vinh
 * @see       hochamLocalService
 * @generated
 */
public class hochamLocalServiceWrapper implements hochamLocalService {
	public hochamLocalServiceWrapper(hochamLocalService hochamLocalService) {
		_hochamLocalService = hochamLocalService;
	}

	/**
	* Adds the hocham to the database. Also notifies the appropriate model listeners.
	*
	* @param hocham the hocham to add
	* @return the hocham that was added
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hocham addhocham(
		doan.quanlycanbo.portlet.model.hocham hocham)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _hochamLocalService.addhocham(hocham);
	}

	/**
	* Creates a new hocham with the primary key. Does not add the hocham to the database.
	*
	* @param mahocham the primary key for the new hocham
	* @return the new hocham
	*/
	public doan.quanlycanbo.portlet.model.hocham createhocham(long mahocham) {
		return _hochamLocalService.createhocham(mahocham);
	}

	/**
	* Deletes the hocham with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param mahocham the primary key of the hocham to delete
	* @throws PortalException if a hocham with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public void deletehocham(long mahocham)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		_hochamLocalService.deletehocham(mahocham);
	}

	/**
	* Deletes the hocham from the database. Also notifies the appropriate model listeners.
	*
	* @param hocham the hocham to delete
	* @throws SystemException if a system exception occurred
	*/
	public void deletehocham(doan.quanlycanbo.portlet.model.hocham hocham)
		throws com.liferay.portal.kernel.exception.SystemException {
		_hochamLocalService.deletehocham(hocham);
	}

	/**
	* Performs a dynamic query on the database and returns the matching rows.
	*
	* @param dynamicQuery the dynamic query to search with
	* @return the matching rows
	* @throws SystemException if a system exception occurred
	*/
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _hochamLocalService.dynamicQuery(dynamicQuery);
	}

	/**
	* Performs a dynamic query on the database and returns a range of the matching rows.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param dynamicQuery the dynamic query to search with
	* @param start the lower bound of the range of model instances to return
	* @param end the upper bound of the range of model instances to return (not inclusive)
	* @return the range of matching rows
	* @throws SystemException if a system exception occurred
	*/
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException {
		return _hochamLocalService.dynamicQuery(dynamicQuery, start, end);
	}

	/**
	* Performs a dynamic query on the database and returns an ordered range of the matching rows.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param dynamicQuery the dynamic query to search with
	* @param start the lower bound of the range of model instances to return
	* @param end the upper bound of the range of model instances to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching rows
	* @throws SystemException if a system exception occurred
	*/
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _hochamLocalService.dynamicQuery(dynamicQuery, start, end,
			orderByComparator);
	}

	/**
	* Counts the number of rows that match the dynamic query.
	*
	* @param dynamicQuery the dynamic query to search with
	* @return the number of rows that match the dynamic query
	* @throws SystemException if a system exception occurred
	*/
	public long dynamicQueryCount(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _hochamLocalService.dynamicQueryCount(dynamicQuery);
	}

	/**
	* Gets the hocham with the primary key.
	*
	* @param mahocham the primary key of the hocham to get
	* @return the hocham
	* @throws PortalException if a hocham with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hocham gethocham(long mahocham)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		return _hochamLocalService.gethocham(mahocham);
	}

	/**
	* Gets a range of all the hochams.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of hochams to return
	* @param end the upper bound of the range of hochams to return (not inclusive)
	* @return the range of hochams
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hocham> gethochams(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _hochamLocalService.gethochams(start, end);
	}

	/**
	* Gets the number of hochams.
	*
	* @return the number of hochams
	* @throws SystemException if a system exception occurred
	*/
	public int gethochamsCount()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _hochamLocalService.gethochamsCount();
	}

	/**
	* Updates the hocham in the database. Also notifies the appropriate model listeners.
	*
	* @param hocham the hocham to update
	* @return the hocham that was updated
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hocham updatehocham(
		doan.quanlycanbo.portlet.model.hocham hocham)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _hochamLocalService.updatehocham(hocham);
	}

	/**
	* Updates the hocham in the database. Also notifies the appropriate model listeners.
	*
	* @param hocham the hocham to update
	* @param merge whether to merge the hocham with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
	* @return the hocham that was updated
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hocham updatehocham(
		doan.quanlycanbo.portlet.model.hocham hocham, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _hochamLocalService.updatehocham(hocham, merge);
	}

	public java.util.List<doan.quanlycanbo.portlet.model.hocham> getAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _hochamLocalService.getAll();
	}

	public doan.quanlycanbo.portlet.model.hocham addHocHam(
		doan.quanlycanbo.portlet.model.hocham hocham1, long userId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _hochamLocalService.addHocHam(hocham1, userId);
	}

	public doan.quanlycanbo.portlet.model.hocham updateHocHam(long mahocham,
		java.lang.String tenhocham)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhochamException {
		return _hochamLocalService.updateHocHam(mahocham, tenhocham);
	}

	public doan.quanlycanbo.portlet.model.hocham deleteHocHam(long mahocham)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhochamException {
		return _hochamLocalService.deleteHocHam(mahocham);
	}

	public doan.quanlycanbo.portlet.model.hocham deleteHocHam(
		doan.quanlycanbo.portlet.model.hocham hocHam)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		return _hochamLocalService.deleteHocHam(hocHam);
	}

	public hochamLocalService getWrappedhochamLocalService() {
		return _hochamLocalService;
	}

	private hochamLocalService _hochamLocalService;
}